package com.z.xhelper.core;

import android.app.Application;
import android.content.Context;

import com.z.xhelper.core.config.BeanContainer;
import com.z.xhelper.core.config.Consts;
import com.z.xhelper.core.utils.LogUtil;

import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedHelpers;
import de.robv.android.xposed.callbacks.XC_LoadPackage;

public class xService {

    public static void run(ClassLoader classLoader) {
        // 注册 loadPackageParam
        BeanContainer.addBean(ClassLoader.class, classLoader);
        // 扫描并注册所有的 Bean
        BeanContainer.scanPackage(Consts.PACKAGE_NAME);
        LogUtil.log("扫描并注册所有的 Bean 完成" + BeanContainer.listBean().size());
    }

}
